package com.duck.base.oauth.security.properties;


import java.util.LinkedList;
import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "url.rule")
public class UrlRule {
	/**
	 * 无权限规则，但需要登录的名单
	 */
	private List<String> excluding = new LinkedList<>();
	/**
	 * 无需登录就能访问的接口白名单
	 */
	private List<String> including = new LinkedList<>();

	public List<String> getExcluding() {
		return excluding;
	}

	public void setExcluding(List<String> excluding) {
		this.excluding = excluding;
	}

	public List<String> getIncluding() {
		return including;
	}

	public void setIncluding(List<String> including) {
		this.including = including;
	}
}
